# -*- coding: utf-8 -*-
import time
# def foo():
#     print('foo-----')
#     time.sleep(1)



# def show_time(func):
#     def inner():
#         start = time.time()
#         func()
#         end = time.time()
#         print(f'运行了{end - start}秒')
#     return inner
#
# @show_time
# def bay():
#     print('bay======')
#     time.sleep(1)
# bay()
# #
# @show_time
# def foo():
#     print('foo-------')
#     time.sleep(1)
# foo()

# def show_time(func):
#     def inner(*args,**kwargs):
#         start = time.time()
#         func(*args,**kwargs)
#         end = time.time()
#         print(f'运行了{end - start}秒')
#     return innerins
#
# @show_time
# def foo(*args,**kwargs):
#     print('foo-------')
#     time.sleep(1)
# foo(1,2,78,3,5,6)

s = [i for i in range(10)]
g = (x for x in range(10))
# print(next(g))
# print(next(g))
for i in g:
    print(i)